﻿
@{
    Layout = null;
}


<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
 <!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EDUSOHO安装程序</title>
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <link href="~/assets/css/install.css" rel="stylesheet" />
    <!--[if lt IE 9]>
      <script src="../assets/libs/html5shiv.js"></script>
    <![endif]-->
    <!--[if IE 8]>
      <script src="../assets/libs/respond.min.js"></script>
    <![endif]-->

</head>
<body>
    <div class="install-container">
        <div class="paper">
            <div class="paper-heading">
                <h1><span class="brand">EduSoho网络课堂</span> <span class="text-muted">安装向导 <small class="text-info">v7.2.0</small></span></h1>
            </div>
            <div class="paper-body">
                <ul class="nav nav-pills nav-justified">
                    <li class="disabled "><a>1. 环境检测</a></li>
                    <li class="disabled active"><a>2. 创建数据库</a></li>
                    <li class="disabled "><a>3. 初始化系统</a></li>
                    <li class="disabled "><a>4. 完成安装</a></li>
                </ul>

                <form class="form-horizontal" id="create-database-form" method="post">
                    <div class="alert alert-danger bootstrap-notify-bar init-error" style="display:none;">
                    </div>
                    <div class="form-group">
                        <label for="database-host-field" class="col-sm-4 control-label">数据库服务器</label>
                        <div class="controls col-sm-5">
                            <input type="text" class="form-control" id="database-host-field" name="database_host" value="127.0.0.1">
                            <div class="help-block">数据库服务器地址，一般为localhost或者127.0.0.1</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="database-port-field" class="col-sm-4 control-label">数据库端口号</label>
                        <div class="controls col-sm-5">
                            <input type="text" class="form-control" id="database-port-field" name="database_port" value="3306">
                            <div class="help-block">数据库端口号，默认为3306</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="database-user-field" class="col-sm-4 control-label">数据库用户名</label>
                        <div class="controls col-sm-5">
                            <input type="text" id="database-user-field" name="database_user" class="form-control" value="root">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="database-password-field" class="col-sm-4 control-label">数据库密码</label>
                        <div class="controls col-sm-5">
                            <input type="password" class="form-control" id="database-password-field" name="database_password" value="">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="database-name-field" class="col-sm-4 control-label">数据库名</label>
                        <div class="controls col-sm-5">
                            <input type="text" id="database-name-field" name="database_name" class="form-control" value="edusoho">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="controls col-sm-offset-4 col-sm-5">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="database_replace" value="1" checked> 覆盖现有数据库
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="controls col-sm-offset-4 col-sm-5">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="database_init" value="1" checked> 生成演示数据
                                </label>
                            </div>
                        </div>
                    </div>

                    <div id="package-update-progress" class="package-update-progress" style="display:none;">
                        <div class="progress progress-striped active">
                            <div class="progress-bar progress-bar-success" style="width: 0%"></div>
                        </div>
                        <div class="text-danger progress-text hidden"></div>
                    </div>

                    <div class="actions">
                        <button type="submit" id="create-database-btn" class="btn btn-primary btn-lg">创建数据库</button>
                    </div>

                </form>
            </div>
        </div>
    </div>

</body>
</html>